<template>
  <MyButton @click="onClick" :msg="msg" />
  <button @click="msg++">++</button>
</template>

<script setup name="App">
import { ref } from 'vue'
import MyButton from './components/MyButton'

function onClick() {
  console.log('点击了按钮');
}
const msg = ref(0)
</script>

<style>
</style>
